﻿using System;

namespace LuckyBingoRcon.Players
{
    public class Team : ITeam
    {
        private string mapName = null;
		private string prettyName = null;

        public Team() { }

        public Team(string mapName, string prettyName)
        {
			if (String.IsNullOrEmpty(mapName) || String.IsNullOrEmpty(prettyName))
			{
				throw new ArgumentException("Map name may notbe null nor empty.");
			}

            this.mapName = mapName;
			this.prettyName = prettyName;
        }

		/// <summary>
		/// Gets the map name. Does not allow setting.
		/// </summary>
        public string MapName
        {
            get
            {
                return mapName;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        /// <summary>
        /// Gets the pretty map name. Does not allow setting.
        /// </summary>
        public string PrettyName
        {
            get
            {
                return prettyName;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

		public override string ToString()
		{
			return prettyName;
		}
    }
}
